<?php  
  $mtime = microtime();
  $mtime = explode(' ',$mtime);
  $mtime = $mtime[1] + $mtime[0];
  $starttime = $mtime;
  if (is_file(dirname(__FILE__)."/install.php"))
  {
        //FileSystem::readFile(dirname(__FILE__)."/install.php");
        include dirname(__FILE__)."/install.php";
        exit() ;
  }
  
  require_once 'core/Master.php';
  if(Master::init())
    Master::start();
    
  $mtime = microtime();
  $mtime = explode(' ',$mtime);
  $mtime = $mtime[1] + $mtime[0];
  $endtime = $mtime;
  $totaltime = ($endtime - $starttime);
  
  if( Config::$showExecutionTime )
    echo '<br />加载所耗时间'.$totaltime.' 秒';  
?>
